<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
    <style>
        body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0; /* 背景颜色 */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-box {
    background: #fff; /* 盒子背景颜色 */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.login-box h2 {
    text-align: center;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box; /* 确保padding不影响宽度 */
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background: #5c67f2; /* 登录按钮颜色 */
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #4a54e1; /* 鼠标悬停时按钮颜色 */
}

p {
    margin-top: 15px;
    text-align: center;
    color: #666;
}

p a {
    color: #5c67f2; /* 注册链接颜色 */
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}
    </style>
</head>
<body>
    <div class="login-container">
        <div class="login-box">
            <h2>登录</h2>
            <form action="#" method="post">
                <div class="input-group">
                    <label for="username">用户名</label>
                    <input type="text" id="username" name="username" required>
                </div>
                <div class="input-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" name="password" required>
                </div>
                <button type="submit">登录</button>
                <p>没有账号？<a href="index.html">注册</a></p>
            </form>
        </div>
    </div>
</body>
</html>